<?php
/**
 * admin.phtml - centrální layout stránky
 *
 * @author     Petr Láslo
 * @author     Přemek Šumpela
 */

echo $this->doctype();

?>
<html xmlns="http://www.w3.org/1999/xhtml"
    <?php if ($this->doctype()->isRdfa()): ?>
      xmlns:og="http://opengraphprotocol.org/schema/"
      xmlns:fb="http://www.facebook.com/2008/fbml"
    <?php endif; ?>>
<head>
    <?php
    $this->headMeta()->appendHttpEquiv('Content-Type',
        'text/html; charset=UTF-8')
        ->appendHttpEquiv('Content-Language', 'cs');
    $this->headMeta()->appendName('copyright', '2011 ČVUT FJFI')
        ->appendName('description', 'Software pro správu knihovny')
        ->appendName('robots', 'ALL,FOLLOW');
    $this->headLink()->appendStylesheet($this->baseUrl() . '/css/style.css');
    $this->headScript()->appendFile($this->baseUrl() . '/js/jquery.admin.js', 'text/javascript');
    $this->headScript()->appendFile($this->baseUrl() . '/js/jquery.ui.datepicker-cs-CZ.min.js', 'text/javascript');

    echo $this->headTitle();
    echo $this->headMeta();
    echo $this->headLink();
    echo $this->headStyle();
    $this->jQuery()->uiEnable();
    $this->jQuery()->setVersion('1.6.4');
    $this->jQuery()->setUiVersion('1.8.16');
    $this->jQuery()->addStyleSheet('/css/humanity/jquery-ui-1.8.16.custom.css');
    echo $this->jQuery();
    echo $this->headScript();

    ?>

</head>
<body>
<div id="obal">

    <div id="head">
        <h1><a name="top"></a>Knihovna</h1>

        <div id="user">
            uživatel:
            <?php
            if (Zend_Auth::getInstance()->hasIdentity()) {
                print Zend_Auth::getInstance()->getIdentity()->username;
            } else {
                ?>
                nepřihlášen
                <?php
            }
            ?>
        </div>

        <?php
        echo $this->navigation()->menu();
        ?>
    </div>

    <div id="breadcrumbs">
        <?php echo $this->navigation()->breadcrumbs(); ?>
    </div>

    <div id="content">
        <?php
        print $this->layout()->content;
        ?>
    </div>


    <div id="footer">
        &copy; 2011 Knihovna
        <p>
            <a href="#top">Nahoru</a>

        </p>
    </div>


    <br/>
</div>
</body>

</html>